import request from '@/utils/request.js'
export function addDiscounts(data) {
  return request({
    method: 'post',
    url: '/universalCoupon',
    data
  })
}

export function getDiscounList() {
  return request({
    method: 'GET',
    url: '/discountList'
  })
}
export function addDiscounData(data) {
  return request({
    method: 'post',
    url: '/discountList',
    data
  })
}
export function addStoreCoupon(data) {
  return request({
    method: 'post',
    url: '/storeCoupon',
    data: data
  })
}
export function getDiscounListTwo() {
  return request({
    method: 'GET',
    url: '/tableData'
  })
}
export function getMaterialList() {
  return request({
    method: 'GET',
    url: '/materialList'
  })
}
export function getOfficialmaterialList() {
  return request({
    method: 'GET',
    url: '/officialmaterialList'
  })
}
